package com.ygsoft.tianlu_mall.mapper;

import com.ygsoft.tianlu_mall.pojo.Collect2goods;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface CollectMapper {

    HashMap<String,Object> checkCollectedGoodsOnDB(int goods_id);

    HashMap<String,Object> checkCollectedGoods(HashMap<String, Object> map);

    void collectgoods(HashMap<String,Object> map);

    void deleteOneGoods(HashMap<String,Object> map);

    List<Map<String,Object>> selectCollectGoods(int user_id);

    int getCollectGoodsCount(int user_id);



    HashMap<String, Object> checkCollectedShopOnDB(int shop_id);

    HashMap<String, Object> checkCollectedShop(HashMap<String, Object> map);

    void collectshop(HashMap<String, Object> map);

    void deleteOneShop(HashMap<String, Object> map);

    List<Map<String, Object>> selectCollectShop(int user_id);

    List<Map<String, Object>> collectShopGood(int user_id);

    int getCollectShopCount(int user_id);

    List<Integer> getGoodsIdByUserId(int user_id);
}
